package com.task.core.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.task.common.domain.info.KeyAndValue;
import com.task.core.domain.ProxyPlatformInfo;
import com.task.core.dto.request.ProxyPlatformRequestDTO;

/**
 * @author 迪迦.
 * @date 2024/11/4 17:35
 */
@Mapper
public interface ProxyPlatformMapper {

  List<ProxyPlatformInfo> getProxyPlatformByPage(ProxyPlatformRequestDTO request);

  ProxyPlatformInfo getProxyPlatformByCode(ProxyPlatformRequestDTO request);

  List<KeyAndValue> getProxyPlatformForOption(ProxyPlatformRequestDTO request);

  void addProxyPlatform(ProxyPlatformRequestDTO request);

  Integer modifyProxyPlatform(ProxyPlatformRequestDTO request);

  Integer deleteProxyPlatform(@Param("code") String proxyPlatformCode, @Param("userId") Long userId);

    ProxyPlatformInfo getProxyPlatformById(@Param("code")String code);

    List<String> getProxyByProxyPlatformCode(String code);
}
